Skip to content

CHORE: Add comprehensive MONEY/SMALLMONEY test suite#485

Merged
gargsaumya merged 8 commits intomainfrom
saumya/money
Apr 23, 2026
Merged

CHORE: Add comprehensive MONEY/SMALLMONEY test suite#485
gargsaumya merged 8 commits intomainfrom
saumya/money

Conversation

@gargsaumya
Copy link
Copy Markdown
Contributor

@gargsaumya gargsaumya commented Mar 25, 2026

Work Item / Issue Reference

AB#40169

GitHub Issue: #<ISSUE_NUMBER>


Summary

Added comprehensive MONEY/SMALLMONEY test suite.

Copilot AI review requested due to automatic review settings March 25, 2026 05:45
@github-actions github-actions Bot added the pr-size: large Substantial code update label Mar 25, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a dedicated integration test module to validate MONEY/SMALLMONEY handling (and related DECIMAL binding behavior) and removes the older, smaller MONEY/SMALLMONEY tests previously embedded in the large cursor test file.

Changes:

  • Added a new tests/test_020_money_smallmoney.py suite covering MONEY/SMALLMONEY boundaries, nulls, executemany, and DECIMAL round-trips.
  • Removed the older MONEY/SMALLMONEY tests from tests/test_004_cursor.py to avoid duplication and keep cursor tests focused.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
tests/test_020_money_smallmoney.py New comprehensive MONEY/SMALLMONEY/DECIMAL tests covering round-trip and boundary/error scenarios.
tests/test_004_cursor.py Removes prior MONEY/SMALLMONEY-related tests now superseded by the new dedicated module.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/test_020_money_smallmoney.py Outdated
Comment thread tests/test_020_money_smallmoney.py Outdated
Comment thread tests/test_020_money_smallmoney.py Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 25, 2026

📊 Code Coverage Report

🔥 Diff Coverage

100%


🎯 Overall Coverage

79%


📈 Total Lines Covered: 6718 out of 8477
📁 Project: mssql-python


Diff Coverage

Diff: main...HEAD, staged and unstaged changes

No lines with coverage information in this diff.


📋 Files Needing Attention

📉 Files with overall lowest coverage (click to expand)
mssql_python.pybind.logger_bridge.cpp: 59.2%
mssql_python.pybind.ddbc_bindings.h: 67.8%
mssql_python.row.py: 70.5%
mssql_python.pybind.logger_bridge.hpp: 70.8%
mssql_python.pybind.ddbc_bindings.cpp: 74.4%
mssql_python.pybind.connection.connection.cpp: 75.8%
mssql_python.__init__.py: 77.3%
mssql_python.ddbc_bindings.py: 79.6%
mssql_python.pybind.connection.connection_pool.cpp: 79.6%
mssql_python.connection.py: 85.2%

🔗 Quick Links

⚙️ Build Summary 📋 Coverage Details

View Azure DevOps Build

Browse Full Coverage Report

@gargsaumya gargsaumya merged commit bf7df63 into main Apr 23, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-size: large Substantial code update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants